# -*- coding: utf-8 -*-
"""
Python代码示例
"""
import collections

import demo.cdn.common as common
import time

def reports_detail_waf():
    """
    示例
    """
    path = "v31/yjs/reports/detail/waf_detail"
    params = {}
    params['domain'] = common.domain
    params['ztype'] = 'zone'
    params['create_on__gte'] = '2019-11-01T10:00:00Z'
    # params['create_on__lt'] = '2019-11-01T13:00:00Z'
    params['per_page'] = 1

    paramskey = sorted(params)
    tmp = {}
    for key in paramskey:
        tmp[key] = params[key]
    params = tmp

    payload = {}

    headers = common.get_request_header(path, params, payload)

    url = common.OPENAPI_BASE_URL % path

    response = common.send_http_request("GET", url, params=params, payload=payload, headers=headers)


if __name__ == '__main__':
    reports_detail_waf()
